package com.trying.simpleioc.demo.comtroller;

import com.trying.simpleioc.annotation.Controller;
import com.trying.simpleioc.annotation.Inject;
import com.trying.simpleioc.demo.service.StudentService;
import com.trying.simpleioc.demo.service.TeacherService;

@Controller
public class ManageController {

	@Inject
	private StudentService studentService;
	
	@Inject
	private TeacherService teacherService;
	
	
	
	public void  sayHello(){
		this.teacherService.sayHello();
		this.studentService.sayHello();
	}
}
